package com.hangsu.train.components.convert;

import com.hangsu.train.components.entity.User;
import com.hangsu.train.components.params.UserAddParam;
import com.hangsu.train.components.params.UserUpdateParam;
import com.hangsu.train.components.vo.UserVo;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface UserConvert {

    User convert(UserUpdateParam param);

    UserVo convert(User user);

    User convert(UserAddParam param);

}